package com.zy.datareceiver.binsess.monitoring.mapper;

import com.zy.datareceiver.binsess.monitoring.entity.MonitoringPoint;
import com.zy.datareceiver.binsess.monitoring.param.index.CountTail;
import com.zy.datareceiver.binsess.monitoring.param.query.PointType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MonitoringPointMapper {

    List<MonitoringPoint> selectAll();

    List<MonitoringPoint> getMonitoringPointById(Integer id);

    CountTail countByStatus();

    void changeStatusByPassId(@Param("ids") List<Integer> ids);

    List<MonitoringPoint> getMonitoringPointByPassId(@Param("passagewayIds") List<Integer> passagewayIds);

    MonitoringPoint selectByPrimaryKey(Integer pointId);

    void anConnectionException();

    void updateRecoverConnectionByType(Integer sendTypeId);

    void updateDisConnectionByType(Integer sendTypeId);

    List<PointType> getAllPointAndDevice();
}